package com.yxw.live_vod_boot.dto;



import com.yxw.live_vod_boot.entity.YxLiveWatchLogEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import lombok.EqualsAndHashCode;



/*** 
*@author Jiaxu.Huang
*@date 2023/12/18 17:59:06
*@update 2023/12/18 17:59:06
**/
@Data
//@EqualsAndHashCode(callSuper = true)
public class YxLiveWatchLogDTO   implements Serializable
{
    private static final long serialVersionUID = 11702893546521L;
    /**
    *主键id
    */
    @NotNull(message = "主键id不可为空")
    @ApiModelProperty(value = "主键id")
    private String Id;
    /**
    *店铺直播间编号
    */
    @ApiModelProperty(value = "店铺直播间编号")
    private Long liveShopId;
    /**
    *店铺Id
    */
    @ApiModelProperty(value = "店铺Id")
    private String shopId;
    /**
    *直播Id
    */
    @ApiModelProperty(value = "直播Id")
    private String liveId;
    /**
    *观看用户Id
    */
    @ApiModelProperty(value = "观看用户Id")
    private Long watchUserId;
    /**
    *观看开始时间
    */
    @ApiModelProperty(value = "观看开始时间")
    private Long watchStartTime;
    /**
    *观看结束时间
    */
    @ApiModelProperty(value = "观看结束时间")
    private Long watchEndTime;
    /**
    *观看时长
    */
    @ApiModelProperty(value = "观看时长")
    private Long watchDuration;
    /**
    *观看网络流量
    */
    @ApiModelProperty(value = "观看网络流量")
    private Long watchLength;
    /**
    *网络带宽(Mbps)
    */
    @ApiModelProperty(value = "网络带宽(Mbps)")
    private Long netSpeed;
    /**
    *创建时间
    */
    @ApiModelProperty(value = "创建时间")
    private Long createTime;
    /**
    *将DTO转换为ENTITY
    */
    public YxLiveWatchLogEntity ConverToEntity()
    {
        YxLiveWatchLogEntity oYxLiveWatchLogEntity = new YxLiveWatchLogEntity ();
        oYxLiveWatchLogEntity.setId(Id) ;
        oYxLiveWatchLogEntity.setLiveShopId(liveShopId) ;
        oYxLiveWatchLogEntity.setShopId(shopId) ;
        oYxLiveWatchLogEntity.setLiveId(liveId) ;
        oYxLiveWatchLogEntity.setWatchUserId(watchUserId) ;
        oYxLiveWatchLogEntity.setWatchStartTime(watchStartTime) ;
        oYxLiveWatchLogEntity.setWatchEndTime(watchEndTime) ;
        oYxLiveWatchLogEntity.setWatchDuration(watchDuration) ;
        oYxLiveWatchLogEntity.setWatchLength(watchLength) ;
        oYxLiveWatchLogEntity.setNetSpeed(netSpeed) ;
        oYxLiveWatchLogEntity.setCreateTime(createTime) ;
        return oYxLiveWatchLogEntity;
    }
}

